

var tableData = {
		url:ctp+"/userController/userPwdSearch.shtml", 
		propertys : ["USER_ID","USER_NAME","AREA_LNAME","EMPLOYEE_NAME","DEVELOPER_NAME","CREC_TIME"],
	    hidden:["userId=USER_ID"], 
	    opers:false,
		startLoad:function (){ 
		getListData(this);	 
	}
};

function pwdReset(){
	var userIds=getCheckIds(null,"userId");	
	if(userIds==''){
		jalert("请选择记录！");
		return false;
	}
	jconfirm("reset('"+userIds+"')","是否要重置所选记录的密码？");	
}
function reset(userIds){
	$.ajax({ 
	 	url: ctp + "/userController/userPwdReset.shtml",
	    data: {userIds:userIds},
		type : 'POST',
		async:false, 
		success : function(result) {  
			if(result=="") {  
				jalert9("所选择的记录密码重置成功,新的密码已短信发送"); 		
				  var curr = "1";
				  if($("#form1").find("#curr").length>0){
					  curr = $("#curr").val();
				  }
				  searchData(curr);			} 		  
			else{     
				jalert(result);   
			} 
  		}
	});
}
function searchData(curr){
	setTagAndValue("form1","curr",curr); 
	tableData.startLoad();
}
$(document).ready(function(){
	searchData();
});
